//
//  Account.h
//  
//
//  Created by barak on 10/27/12.
//  Copyright (c) 2012 yaniv. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BudgetRule.h"

@interface Account : NSObject {
    NSString *accountNumber;
    NSNumber *actualBalance;
    NSNumber *availableBalance;
    NSString *currency;
    NSArray *holders;
    NSString *iban;
    NSString *accountId;
    NSString *office;
    NSNumber *retainedBalance;
}

@property (nonatomic, copy) NSString *accountNumber;
@property (nonatomic, copy) NSNumber *actualBalance;
@property (nonatomic, copy) NSNumber *availableBalance;
@property (nonatomic, copy) NSString *currency;
@property (nonatomic, copy) NSArray *holders;
@property (nonatomic, copy) NSString *iban;
@property (nonatomic, copy) NSString *accountId;
@property (nonatomic, copy) NSString *office;
@property (nonatomic, copy) NSNumber *retainedBalance;
@property (nonatomic, readwrite) NSArray* budgetRules;
@property (nonatomic, readwrite) NSArray* managers;
@property (nonatomic, readwrite) NSArray* cards;

+ (Account*) mainAccount;
+ (Account *)instanceFromDictionary:(NSDictionary *)aDictionary;
- (void)setAttributesFromDictionary:(NSDictionary *)aDictionary;

- (NSDictionary *)dictionaryRepresentation;

@end
